import request from '@/utils/request'

// 查询类别列表
export function queryCategory(data) {
  return request({
    url: '/console/category/queryCategory',
    method: 'post',
    data: data
  })
}

// 添加类别
export function addCategory(data) {
  return request({
    url: '/console/category/addCategory',
    method: 'post',
    data: data
  })
}

// 删除类别
export function deleteCategory(data) {
  return request({
    url: '/console/category/deleteCategory',
    method: 'post',
    data: data
  })
}

// 修改类别
export function updateCategory(data) {
  return request({
    url: '/console/category/updateCategory',
    method: 'post',
    data: data
  })
}

//查询产品分类
export function queryCategoryList(data) {
  return request({
    url: '/console/category/categoryList',
    method: 'post',
    data: data
  })
}
